<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 /*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of report
 *
 * @author Константин Охотник
 */
class SettingsModel extends Crud
{
    public function __construct()
    {
        parent::__construct();
        $this->load->library('ci_access');
    }
  
    public function getCategories()
    {
        return $this->get_array('gl_categories');
    }
    
     public function getSites()
    {
        return $this->get_array('gl_site');
    }
    
    public function AddCategory($arr)
    {
        return $this->add_db('gl_categories', $arr);
    }
    
     public function AddSite($arr)
    {
        return $this->add_db('gl_site', $arr);
    }
    
    public function AddPerson($arr)
    {
        return $this->add_db('tb_person', $arr);
    }
}